//
//  YJTrainingModel.swift
//  yuejian
//
//  Created by yanziye on 2017/10/11.
//  Copyright © 2017年 gyy. All rights reserved.
//

import UIKit

class YJTrainingModel: NSObject {
    var SessionID: NSNumber!
    var page: NSNumber!
    var mod: NSString!
    var thumb:NSString!
    var training_name:NSString!
    var userid:NSString!

    class func trainingModelWithDict(_ dict: NSDictionary ) -> YJTrainingModel {
        let model = YJTrainingModel()
        //根据字典，进行模型的初始化
        model.training_name = dict.value(forKey: "training_name") as! NSString!
        model.thumb = dict.value(forKey: "thumb") as! NSString!
        model.userid = dict.value(forKey: "userid") as! NSString!
        return model
    }
    
    
}

